import { useSearchParams } from 'react-router-dom';

export function useSearch() {

    const [searchParams] = useSearchParams();

    /** 编辑时的服务id */
    const id = searchParams.get('id');

    return {
        /** 服务id */
        id,
    }
} 